app.controller('refundDetailCtrl', function ($scope, $stateParams, ajax) {

	$scope.returnId = $stateParams.returnId;
	//查询
	$scope.reload = function () {
		ajax.call(new Req.GET({
			resource: 'refund/bk/' + $stateParams.returnId + '/id'
		})).then(function (result) {
			$scope.refund = result.result;
		}, function () { });
	};
	if ($scope.returnId) $scope.reload();
});